package com.wanmait.employment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
* Created by Mybatis Generator 2023/05/29
*/
@Data
@TableName(value = "job_experience")
public class JobExperience implements Serializable {
    /**
     * id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "userinfo_id")
    private Integer userinfoId;
    @TableField(value = "userinfo",exist = false)
    private Userinfo userinfo;

    @TableField(value = "company_name")
    private String companyName;

    @TableField(value = "duty")
    private String duty;

    @TableField(value = "industry_name")
    private String industryName;

    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_USERINFO_ID = "userinfo_id";

    public static final String COL_COMPANY_NAME = "company_name";

    public static final String COL_DUTY = "duty";

    public static final String COL_INDUSTRY_NAME = "industry_name";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_ENABLE = "enable";
}